package com.vogue;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author chenhaiyang <690732060@qq.com>
 */

@SpringBootApplication
@ComponentScan("com.vogue")
public class VogueApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(VogueApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(VogueApplication.class);
    }
}
